package com.ai.pos.client.user;

public class User {
	
	private int RecId;
	private String EntryCode;
	private String FirstName;
	String MiddleName;
	private String LastName;
	String Birthday;
	String SocialSecurity;
	long StartDate;
	String CardSwipeField; //Try putting the cursor in this field and swiping to save, then reading it on text change. (Card must be greater than 5 digits (so don't have to check text change till most hand entered codes are in)
	
	public boolean isAdmin;
	
	public Preferences prefs;
	

	public User()
	{
		
	}
	
	
	public boolean Authenticate()
	{
		//Check server for auth
		return true;
	}
	
	public User load(String authCodeUsed)
	{
		
		//User authcode to lookup user either in LocalStorage, or 
		
		
		User user = new User();
		FirstName = "Timothy";
		LastName = "Powell";
		//TODO: Create Load User methods (From Cache first, then DB)
		
		return user;
	}	
}
